package com.pureut.storage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pureut.storage.domain.MiscellaneousReceipt;
import com.pureut.storage.dto.*;
import com.pureut.storage.vo.MiscellaneousReceiptVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/***
 *
 * Author:C
 * Date:2022/12/28 15:46
 * @DESC
 */
@Mapper
public interface MiscellaneousReceiptMapper extends BaseMapper<MiscellaneousReceipt> {

    /**
     * 其他入库列表
     */
    List<MiscellaneousReceiptDto> getMiscellaneousList(MiscellaneousReceiptVo miscellaneousReceiptVo);

    /**
     * 根据id获取其他入库详情
     */
    MiscellaneousReceiptDto getMiscellaneousById(long id);

    /**
     * 其他入库列表(手持pda)
     */
    List<AndroidPdaDto> getMiscellaneousAndroidList(Long deptId);

    /**
     * 手持pda 拣货撤销列表
     */
    List<AndroidPdaDto> getMiscellaneousAndroidpickCancellationList(Long deptId);

    /**
     * 根据id获取其他入库详情(手持pda)
     */
    AndroidPdaViewDto getMiscellaneousByIdAndroid(long id);

    /**
     * 其他入库pda 交接列表
     */
    List<AndroidHandoverPdaDto> getAndroidHandoverList(Long deptId);

    /**
     * 其他入库手持pda 交接详情
     */
    AndroidHandoverPdaDto getAndroidHandoverView(long id);

    /**
     * 根据多个id获取数据
     */
    List<MiscellaneousPurchaseReceiptExportDto> getDataByIdStr(@Param("idList") List<String> idList);

    /**
     * 其他入库列表(导出查询)
     */
    List<MiscellaneousPurchaseReceiptExportDto> getMiscellaneousListOut(MiscellaneousReceiptVo miscellaneousReceiptVo);
}
